package com.bytz.modules.cms.product.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.common.entity.IEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—产品管理—产品分类表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@TableName("cms_product_hierarchy")
@ApiModel(value="ProductHierarchy对象", description="莱宝CMS—产品管理—产品分类表")
public class ProductHierarchy implements Serializable, IEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "分类编号")
    @ExcelProperty("分类编号")
    private String hierarchyNumber;

    @ApiModelProperty(value = "分类描述")
    @ExcelProperty("分类描述")
    private String hierarchyDesc;

    @ApiModelProperty(value = "大类名称")
    @ExcelProperty("大类名称")
    private String categoryName;

    @ApiModelProperty(value = "单位")
    @ExcelProperty("单位")
    private String unit;

    @ApiModelProperty(value = "产品线ID")
    private String productLineId;

    @ApiModelProperty(value = "产品线code")
    @ExcelProperty("产品线")
    private String productLineCode;

//    @ApiModelProperty(value = "预计交期时间")
//    @ExcelProperty("交期(日)")
//    private Integer deliveryTime;

    @ApiModelProperty(value = "预付比例")
    @ExcelProperty("预付比例(%)")
    private BigDecimal prepayRatio;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}